﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Galaktika.BI.Silverlight.Controls.PivotGrid.Data;
using System.Collections.Generic;
using Galaktika.BI.Silverlight.Controls.PivotGrid.View;

namespace Galaktika.BI.Silverlight.Controls.PivotGrid.Controls
{
    public class CellValueChangedEventArgs : EventArgs
    {
        public object Owner = null;
        public readonly CellView Cell = null;
        public readonly String NewValue = String.Empty;
        public readonly IList<MemberInfo> Tuple = null;

        public CellValueChangedEventArgs(object owner,
            CellView cell,
            String newValue,
            IList<MemberInfo> tuple)
        {
            this.Owner = owner;
            this.Cell = cell;
            this.NewValue = newValue;
            this.Tuple = tuple;
        }
    }

    public class FocusedCellChangedEventArgs : EventArgs
    {
        public object Owner = null;
        public readonly CellControl OldFocusedCell = null;
        public readonly CellControl NewFocusedCell = null;

        public FocusedCellChangedEventArgs(object owner,
            CellControl oldFocusedCell,
            CellControl newFocusedCell)
        {
            this.Owner = owner;
            this.OldFocusedCell = oldFocusedCell;
            this.NewFocusedCell = newFocusedCell;
        }
    }

}
